-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: extract @agoric/contracts package #7399
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few observations. I'm not going to look closely inside /zoe/ until contracts is moved.
import { deeplyFulfilledObject } from '@agoric/internal'; | ||
import { Stable } from '@agoric/vats/src/tokens.js'; | ||
import { E } from '@endo/far'; | ||
import { parseRatio } from '@agoric/zoe/src/contractSupport/ratio.js'; | ||
import { parseRatio } from '@agoric/contracts'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
presumably need to be combined
@@ -1,11 +1,11 @@ | |||
import { AmountMath } from '@agoric/ertp'; | |||
import { natSafeMath } from '@agoric/zoe/src/contractSupport/index.js'; | |||
import { Fail } from '@agoric/assert'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this si the deprecated way. You don't need an import to get assert
, just move this below imports.
import { Fail } from '@agoric/assert'; | |
const { Fail } = assert; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the jury's still out on that: #5672
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to move ratio
to internal
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no because it needs to be used externally
4b2f52c
to
e146ee5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LMK when this is rfr.
I'm submitting this to get it off my queue.
|
This looks like it closes #1656 too. |
e146ee5
to
2391b00
Compare
closes: #7392
closes: #1656
refs: #XXXX
Description
TODO
Security Considerations
Scaling Considerations
Documentation Considerations
Testing Considerations